import React, { Component } from 'react'
import { Route } from 'react-router-dom'

function withRouter(Com) {
    return class NewCom extends Component {
        render() {
            return <div>
                {/* <Com/> */}
                <Route component = { Com }/>
            </div>
        }
    }
}

export {
    withRouter
}